package cn.edu.xmu.oomall.share.model.vo;

import cn.edu.xmu.oomall.share.microservice.vo.SimpleAdminUserBo;
import cn.edu.xmu.oomall.share.microservice.vo.SimpleProductRetVo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.ZonedDateTime;

/**
 * @author Jianxiang Xie
 * @date 2021/12/5
 */
@Data
public class SuccessfulShareRetVo {
    private Long id;
    private SimpleProductRetVo product;
    private Long sharerId;
    private Long customerId;
    private Integer state;
    private SimpleAdminUserBo creator;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ", timezone = "GMT+8")
    private ZonedDateTime gmtCreate;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ", timezone = "GMT+8")
    private ZonedDateTime gmtModified;
    private SimpleAdminUserBo modifier;
}